package net.zjitc.service.impl;

import net.zjitc.dao.ProductDao;
import net.zjitc.dao.impl.ProductDaoImpl;
import net.zjitc.pojo.Product;
import net.zjitc.service.ProduceService;
import net.zjitc.utils.PageBean;

/**
 * Created by Administrator on 2017/11/22.
 */
public class ProductServiceImpl  implements ProduceService{
    ProductDao productDao = new ProductDaoImpl();
    public PageBean<Product> findPageBean(int page, int pageSize) {
        return productDao.findPageBean(page,pageSize);
    }

    public int insert(Product product) {
        return productDao.insert(product);
    }

    public PageBean<Product> findPageBeanByCid(int page, int pageSize, int cid) {
        return productDao.findPageBeanByCid(page,pageSize,cid);
    }

    public Product findByPid(int pid) {
       return productDao.findByPid(pid);
    }
}
